-- GENERATED SPELL FOR [Licillin] --


function spell0_2191(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(11980,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2191', 628, 1)
end

function spell1_2191(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(20791,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2191', 3000, 1)
end

function Sorts_2191(pUnit, Event)
local choix_sorts_2191 = math.random(0, 1)
if choix_sorts_2191 == 0 then
pUnit:RegisterEvent('spell0_2191', 1, 1)
end
if choix_sorts_2191 == 1 then
pUnit:RegisterEvent('spell1_2191', 1, 1)
end
end

function mob2191_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2191', math.random(1500, 3000), 1)
end

function mob2191_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2191_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2191_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2191, 1, 'mob2191_Action')
RegisterUnitEvent(2191, 2, 'mob2191_Leave')
RegisterUnitEvent(2191, 3, 'mob2191_Kill')
RegisterUnitEvent(2191, 4, 'mob2191_Die')
